import service from '@/utils/request'
// eslint-disable-next-line no-unused-vars
const { httpPostForm, httpPost, httpGet } = service

const request = {
    //获取零星采购计划列表
    sporadicPurchasePlanListByEntity (params) {
        return httpPost({
            url: '/material/sporadicPurchasePlan/listByEntity',
            params
        })
    },
    //新增零星采购计划
    AddSporadicPurchasePlan (params) {
        return httpPost({
            url: '/material/sporadicPurchasePlan/create',
            params
        })
    },
    //修改零星采购计划基本信息
    EditSporadicPurchasePlan (params) {
        return httpPost({
            url: '/material/sporadicPurchasePlan/update',
            params
        })
    },
    //修改零星采购计划明细
    EditSporadicPurchasePlanList (params) {
        return httpPost({
            url: '/material/sporadicPurchasePlan/updateList',
            params
        })
    },
    //新增零星采购计划变更
    AddSporadicPurchaseChanged (params) {
        return httpPost({
            url: '/material/sporadicPurchasePlanChanged/create',
            params
        })
    },
    //修改零星采购计划变更
    EditSporadicPurchaseChanged (params) {
        return httpPost({
            url: '/material/sporadicPurchasePlanChanged/update',
            params
        })
    },
    //修改零星采购计划变更明细
    EditSporadicPurchaseChangedList (params) {
        return httpPost({
            url: '/material/sporadicPurchasePlanChanged/updateList',
            params
        })
    },

}

export default request